<html>
<head><meta charset="utf-8"><title>Having trouble writing test cases · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html">Having trouble writing test cases</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="208402052"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402052" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402052">(Aug 28 2020 at 22:36)</a>:</h4>
<p>I'm trying to implement <a href="#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Require.20users.20to.20confirm.20they.20know.20RUSTC_.E2.80.A6.20compiler-team.23350/near/208377359">https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Require.20users.20to.20confirm.20they.20know.20RUSTC_.E2.80.A6.20compiler-team.23350/near/208377359</a>. I have the following in the test suite:</p>
<div class="codehilite"><pre><span></span><code><span class="cp">#[cargo_test]</span><span class="w"></span>
<span class="k">fn</span> <span class="nf">rustc_bootstrap_is_disallowed</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">project</span><span class="p">()</span><span class="w"></span>
<span class="w">        </span><span class="p">.</span><span class="n">file</span><span class="p">(</span><span class="s">&quot;src/main.rs&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;fn main() {}&quot;</span><span class="p">)</span><span class="w"></span>
<span class="w">        </span><span class="p">.</span><span class="n">file</span><span class="p">(</span><span class="w"></span>
<span class="w">            </span><span class="s">&quot;build.rs&quot;</span><span class="p">,</span><span class="w"></span>
<span class="w">            </span><span class="n">r</span><span class="err">#</span><span class="s">&quot;</span>
<span class="s">            fn main() {</span>
<span class="s">                println!(&quot;</span><span class="n">cargo</span>:<span class="nc">rustc</span><span class="o">-</span><span class="n">env</span><span class="o">=</span><span class="n">RUSTC_BOOTSTRAP</span><span class="o">=</span><span class="mi">1</span><span class="s">&quot;);</span>
<span class="s">            }</span>
<span class="s">        &quot;</span><span class="err">#</span><span class="p">,</span><span class="w"></span>
<span class="w">        </span><span class="p">)</span><span class="w"></span>
<span class="w">        </span><span class="p">.</span><span class="n">build</span><span class="p">();</span><span class="w"></span>
<span class="w">    </span><span class="n">p</span><span class="p">.</span><span class="n">cargo</span><span class="p">(</span><span class="s">&quot;build&quot;</span><span class="p">)</span><span class="w"></span>
<span class="w">        </span><span class="p">.</span><span class="n">with_stderr_contains</span><span class="p">(</span><span class="s">&quot;Cannot set `RUSTC_BOOTSTRAP`&quot;</span><span class="p">)</span><span class="w"></span>
<span class="w">        </span><span class="p">.</span><span class="n">with_status</span><span class="p">(</span><span class="mi">101</span><span class="p">)</span><span class="w"></span>
<span class="w">        </span><span class="p">.</span><span class="n">run</span><span class="p">();</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>


<p>and the following output from cargo when it runs:</p>
<div class="codehilite"><pre><span></span><code>error: Cannot set `RUSTC_BOOTSTRAP` from build script of `bootstrap v0.1.0 (/home/joshua/src/rust/cargo/bootstrap)`.
note: This was previously allowed but has been removed because it subverts the stability guarentees of Rust.
help: If you&#39;re sure you want to do this, use `RUSTC_BOOTSTRAP=1 cargo build` instead.
</code></pre></div>


<p>but the test fails with</p>
<div class="codehilite"><pre><span></span><code>---- build_script_env::rustc_bootstrap_is_disallowed stdout ----
running `/home/joshua/.local/lib/cargo/target/debug/cargo build`
thread &#39;build_script_env::rustc_bootstrap_is_disallowed&#39; panicked at &#39;
Expected: execs
    but: expected to find:
Cannot set `RUSTC_BOOTSTRAP`

did not find in output:
   Compiling foo v0.0.1 (/home/joshua/.local/lib/cargo/target/cit/t0/foo)
error: Cannot set `RUSTC_BOOTSTRAP` from build script of `foo v0.0.1 (/home/joshua/.local/lib/cargo/target/cit/t0/foo)`.
note: This was previously allowed but has been removed because it subverts the stability guarentees of Rust.
help: If you&#39;re sure you want to do this, use `RUSTC_BOOTSTRAP=1 cargo build` instead.
&#39;, crates/cargo-test-support/src/lib.rs:832:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
</code></pre></div>


<p>What am I doing wrong? I don't understand what it's trying to tell me.</p>



<a name="208402079"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402079" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402079">(Aug 28 2020 at 22:37)</a>:</h4>
<p>as a side note, <code>Expected: execs</code> is really unhelpful :(</p>



<a name="208402281"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402281" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402281">(Aug 28 2020 at 22:39)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="239881">@Josh Triplett</span></p>



<a name="208402314"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402314" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402314">(Aug 28 2020 at 22:40)</a>:</h4>
<p>oh ugh cargo itself is getting messed up by <code>CARGO_TARGET_DIR</code> in the environment</p>



<a name="208402364"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402364" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402364">(Aug 28 2020 at 22:40)</a>:</h4>
<p>probably the test suite should forcibly unset that</p>



<a name="208402429"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402429" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402429">(Aug 28 2020 at 22:41)</a>:</h4>
<p>Let me know if that fixes it or if you still run into issues.</p>



<a name="208402483"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402483" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402483">(Aug 28 2020 at 22:42)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span>  The <code>with_stderr_contains</code> needs a <code>[..]</code> at the end.  It matches entire lines by default, and the <code>[..]</code> is equivalent to <code>.*</code> regex.</p>



<a name="208402523"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402523" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402523">(Aug 28 2020 at 22:42)</a>:</h4>
<p>Ah, interesting!</p>



<a name="208402570"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402570" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402570">(Aug 28 2020 at 22:43)</a>:</h4>
<p>that did it, thank you!!</p>



<a name="208402579"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402579" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402579">(Aug 28 2020 at 22:43)</a>:</h4>
<p>Also, typo: *guarantees.</p>



<a name="208402649"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402649" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402649">(Aug 28 2020 at 22:44)</a>:</h4>
<p><del>bold of you to assume it's a typo and I know how to spell</del></p>



<a name="208402653"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402653" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402653">(Aug 28 2020 at 22:44)</a>:</h4>
<p>And some minor tweaks to that message (modulo word-wrapping):</p>
<div class="codehilite"><pre><span></span><code>note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.
help: If you&#39;re sure you want to do this in your project, use `RUSTC_BOOTSTRAP=1 cargo build` instead.
help: See $URL for details.
</code></pre></div>



<a name="208402670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402670">(Aug 28 2020 at 22:45)</a>:</h4>
<p>(where <code>$URL</code> could point to the Cargo documentation for <code>rustc-env</code>.)</p>



<a name="208402694"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402694" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402694">(Aug 28 2020 at 22:45)</a>:</h4>
<p>nice, thanks :)</p>



<a name="208402705"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402705" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402705">(Aug 28 2020 at 22:45)</a>:</h4>
<p><a href="https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-env">https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-env</a> looks like the right spot</p>



<a name="208402759"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402759" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402759">(Aug 28 2020 at 22:46)</a>:</h4>
<p>Yeah, exactly.</p>



<a name="208402802"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402802" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402802">(Aug 28 2020 at 22:46)</a>:</h4>
<p>is there a way to color <code>note</code> and <code>help</code>?</p>



<a name="208402807"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402807" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402807">(Aug 28 2020 at 22:47)</a>:</h4>
<p>right now <code>error</code> is colored but those aren't</p>



<a name="208402815"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402815" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402815">(Aug 28 2020 at 22:47)</a>:</h4>
<p>I tweaked the message one more time, to try to make it a little more clear that we're not admonishing projects, we're proscribing <em>crates</em> from doing it on behalf of projects.</p>



<a name="208402895"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402895" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402895">(Aug 28 2020 at 22:48)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> Are you using the <code>note</code> function?</p>



<a name="208402909"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402909" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402909">(Aug 28 2020 at 22:48)</a>:</h4>
<p>I didn't know that existed <span aria-label="laughing" class="emoji emoji-1f606" role="img" title="laughing">:laughing:</span></p>



<a name="208402912"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402912" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402912">(Aug 28 2020 at 22:48)</a>:</h4>
<p>thanks!</p>



<a name="208402929"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402929" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402929">(Aug 28 2020 at 22:48)</a>:</h4>
<p>where do I get a <code>Shell</code> from?</p>



<a name="208402944"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402944" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402944">(Aug 28 2020 at 22:49)</a>:</h4>
<p>How are you currently printing the <code>error</code>?</p>



<a name="208402950"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402950" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402950">(Aug 28 2020 at 22:49)</a>:</h4>
<p>it's just <code>anyhow::bail</code></p>



<a name="208402951"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402951" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402951">(Aug 28 2020 at 22:49)</a>:</h4>
<p>Oh, you're doing <code>bail!</code>?</p>



<a name="208402954"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402954" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402954">(Aug 28 2020 at 22:49)</a>:</h4>
<p>Hrm...</p>



<a name="208402991"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208402991" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208402991">(Aug 28 2020 at 22:50)</a>:</h4>
<p>Cargo doesn't have structured diagnostics, so you can't attach notes or anything like that.</p>



<a name="208403065"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208403065" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208403065">(Aug 28 2020 at 22:50)</a>:</h4>
<p>Ah. So perhaps this should just be one long error message, then?</p>



<a name="208403085"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208403085" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208403085">(Aug 28 2020 at 22:51)</a>:</h4>
<p>yea, that's how it is usually done</p>



<a name="208403108"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Having%20trouble%20writing%20test%20cases/near/208403108" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases.html#208403108">(Aug 28 2020 at 22:51)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/246057-t-cargo/topic/Having.20trouble.20writing.20test.20cases/near/208402649">said</a>:</p>
<blockquote>
<p><del>bold of you to assume it's a typo and I know how to spell</del></p>
</blockquote>
<p>I tend to use the word "typo" all-encompassingly, regardless of cause or intent. :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>